function $(id){return document.getElementById(id)}
window.onload = function (){
        $("ipt1").addEventListener("click",function (){
                $("div1").style.display = "block";
                $("div2").style.display= "none";
                $("btn1").addEventListener("click",function (){
                        $("div3").style.display = "block";
                        $("div4").style.display= "none";

                     var  a=$("lcjg").textContent();
                     var b=0.1*a;
                     var c=b*0.056;
                     var  d=(b+c)/6;
                       $("yhk").value=d;
                       $("lxze").value=c;
                       $("ljhk").value=b+c;
                })
                $("btn2").addEventListener("click",function (){
                        $("div4").style.display = "none";
                        $("div3").style.display= "none";
                })
        })

        $("ipt2").addEventListener("click",function (){
                $("div2").style.display = "block";
                $("div1").style.display= "none";
                $("btn1").addEventListener("click",function (){
                        $("div4").style.display = "block";
                        $("div3").style.display= "none";
                })
                $("btn2").addEventListener("click",function (){
                        $("div4").style.display = "none";
                        $("div3").style.display= "none";
                })
        })



}